package com.bsfcs.rag.repository;

import com.bsfcs.rag.entity.Project;
import org.springframework.data.jpa.repository.JpaRepository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Optional;


@Repository
public interface ProjectRepository extends JpaRepository<Project, String> {
    @Query("SELECT w FROM Project w WHERE w.id = :id")
    Optional<Project> findById(String id);
}